package com.java.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.java.dao.StatusDao;
import com.java.model.PageBean;
import com.java.model.Status;
import com.java.service.StatusService;

@Service("statusService")
public class StatusServiceImpl implements StatusService{

	@Resource
	private StatusDao statusDao;
	
	@Override
	public List<Status> find(PageBean pageBean, Status s_status) {
		return statusDao.find(pageBean, s_status);
	}

	@Override
	public int count(Status s_status) {
		return statusDao.count(s_status);
	}

	@Override
	public void add(Status status) {
		statusDao.add(status);
	}

	@Override
	public void update(Status status) {
		statusDao.update(status);
	}

	@Override
	public void delete(int id) {
		statusDao.delete(id);
	}

	@Override
	public Status loadById(int id) {
		return statusDao.loadById(id);
	}

}
